/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.DisciplineFacade;
import org.ipti.br.tag.entity.Discipline;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */

@Stateless
public class DisciplineBO implements Serializable {
    
    @Inject
    private DisciplineFacade disciplineDAO;
    
    public DisciplineFacade getDisciplineDAO() {
        return disciplineDAO;
    }
    
    public void create(Discipline discipline) {
        getDisciplineDAO().create(discipline);
    }
    
    public void edit(Discipline discipline) {
        getDisciplineDAO().edit(discipline);
    }
    
    public void remove(Discipline discipline) {
        getDisciplineDAO().remove(discipline);
    }
    
    public Discipline find(Object id) {
        return getDisciplineDAO().find(id);
    }
    
    public List<Discipline> findAll() {
        return getDisciplineDAO().findAll();
    }

    public void editForSynchronization(Discipline discipline) {
        getDisciplineDAO().editForSynchronization(discipline);
    }
    
    public List<Discipline> findAllOrder() {
        return getDisciplineDAO().findAllOrder();
    }
    
    public List<Discipline> searchDisciplinesPerUnity (Long unityID) {
        return getDisciplineDAO().searchDisciplinesPerUnity(unityID);
    }
}
